package com.lt.flashcard.model.entity;

import com.google.code.morphia.annotations.Embedded;

@Embedded
public class TestcaseMatchingData {
	
	/**
	 * Point to the flashcard id
	 */
	private Long flashcardid;
	/**
	 * Cache the flashcard term
	 */
	private String term;
	/**
	 * Cache the flashcard definition
	 */
	private String definition;
	/**
	 * Cache the flashcard image
	 */
	private String image;
	
	private boolean result = false; //0 for fail, 1 for right
	
	private int resultTime = 0; 
	private int resultScore = 0;
	/**
	 * whether this test take in the same date
	 */
	private boolean isSameDate = false;
	/**
	 * whether point is makeup
	 */
	private boolean isMakeupPoint = false;
	
	public Long getFlashcardid() {
		return flashcardid;
	}
	
	public void setFlashcardid(Long flashcardid) {
		this.flashcardid = flashcardid;
	}
	
	public String getTerm() {
		return term;
	}
	
	public void setTerm(String term) {
		this.term = term;
	}
	
	public String getDefinition() {
		return definition;
	}
	
	public void setDefinition(String definition) {
		this.definition = definition;
	}
	
	public String getImage() {
		return image;
	}
	
	public void setImage(String image) {
		this.image = image;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	/**
	 * @return the resultTime
	 */
	public int getResultTime() {
		return resultTime;
	}

	/**
	 * @param resultTime the resultTime to set
	 */
	public void setResultTime(int resultTime) {
		this.resultTime = resultTime;
	}

	/**
	 * @return the resultScore
	 */
	public int getResultScore() {
		return resultScore;
	}

	/**
	 * @param resultScore the resultScore to set
	 */
	public void setResultScore(int resultScore) {
		this.resultScore = resultScore;
	}

	/**
	 * @return the isSameDate
	 */
	public boolean isSameDate() {
		return isSameDate;
	}

	/**
	 * @param isSameDate the isSameDate to set
	 */
	public void setSameDate(boolean isSameDate) {
		this.isSameDate = isSameDate;
	}

	/**
	 * @return the isMakeupPoint
	 */
	public boolean isMakeupPoint() {
		return isMakeupPoint;
	}

	/**
	 * @param isMakeupPoint the isMakeupPoint to set
	 */
	public void setMakeupPoint(boolean isMakeupPoint) {
		this.isMakeupPoint = isMakeupPoint;
	}
}
